if (!(result.length() == 0))
{
thumbUrl
= result.getJSONObject(0).getString("thumbnail_medium");
}
}
catch (Exception e)
if (!(result.isEmpty()))
{
thumbUrl
= (String)((JSONObject)result.get(0))
.get("thumbnail_medium");
}
}